include ../ffox.mk

TARGET=	libpicoc.a
SRCS=	picoc.c \
	table.c \
	lex.c \
	parse.c \
	expression.c \
	heap.c \
	type.c \
	variable.c \
	clibrary.c \
	library_ffox.c \
	platform.c \
	platform_ffox.c

OBJS:=$(SRCS:%.c=%.o)
CFLAGS += -DFLYINGFOX_HOST

all: $(TARGET)

$(TARGET): $(OBJS)
	$(AR) r $(TARGET) $(OBJS)

clean:
	rm -f $(TARGET) $(OBJS)

depend:
	$(CC) $(CFLAGS) -MM $(SRCS) >.depend

-include .depend

